package com.cssl.mapper;


import com.cssl.domain.DtsAddress;
import com.cssl.domain.DtsRegin;
import com.cssl.domain.dto.DtsAddressDto;
import org.apache.ibatis.annotations.Param;


import java.util.List;


/**
* @author 黄鑫
* @description 针对表【dts_address(收货地址表)】的数据库操作Mapper
* @createDate 2024-07-30 11:08:33
* @Entity com.cssl.domain.DtsAddressController
*/
public interface DtsAddressMapper {

    List<DtsAddress> getAddressList(DtsAddressDto dtsAddressDto);
    int getDtsAddressCount();

    DtsAddress getAddressByUid(Integer finalLoginId);

    List<DtsAddress> getUserAddress(Integer login);

    List<DtsRegin> getProvince();

    List<DtsRegin> getCity(Integer cityId);

    List<DtsRegin> getAllCity(List<Integer> collect);

    List<DtsRegin> getAllArea(List<Integer> integerStream);

    Integer addUserMapper(DtsAddress address);

    Integer updateDefault(@Param("userId") Integer userId,@Param("default") Integer isDefault);

    Integer deleteUserAddress(Integer id);

    DtsAddress getAddressByAid(@Param("uid") Integer finalLogin, @Param("aid") Integer addressId);
}




